package com.felix.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.felix.dao.UserDao;
import com.felix.entity.User;
import com.felix.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * UserServiceImpl
 *
 * @author: xuejinhua
 * @date: 2018/7/30 23:08
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public Integer selectCount() {
        return userDao.selectCount(new EntityWrapper<User>());
    }

}
